<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta charset="ISO-8859-1">
    <title>授课管理系统</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <h1>授课管理</h1>
    <hr>
    <h2>更改tc</h2>
    <form action="#" th:action="@{/TC/saveTC}" th:object="${tc}" method="POST">
        <!-- Add hidden form field to handle update -->
        <input type="hidden" th:field="*{tno}"/>
        <input type="hidden" th:field="*{cno}"/>
        教师编号：
        <div th:text="${tc.tno}" class="form-control mb-4 col-4"></div>
        课程号：<div th:text="${tc.cno}" class="form-control mb-4 col-4"></div>
        授课学期：<input type="text" th:field="*{term}" class="form-control mb-4 col-4">
        <button type="submit" class="btn btn-info col-2"> 更改</button>
    </form>
    <hr>
    <a th:href="@{/TC/}"> 返回到授课列表</a>
</div>
</body>
</html>
